package com.yunhe.merchants.service;

import com.yunhe.common.metadata.BaseExcelModel;
import com.yunhe.common.model.mybatis.PageResult;
import com.yunhe.merchants.domain.MyProject;
import com.yunhe.merchants.model.FilterCondition;
import com.yunhe.merchants.model.HistoryProjectUpload;
import com.yunhe.merchants.model.IntentionProjectUpload;

import java.util.List;

/**
 * @Author: DongWenYu
 * @Date: 2021/5/7 21:02
 */
public interface IHistoryProjectService extends IMyProjectService{

    /**
     * 条件查询历史记录
     * @param filterCondition
     * @param userId
     * @param page
     * @param size
     * @return com.yunhe.common.model.mybatis.PageResult
     * @create 2021/5/13 15:35
     */
    PageResult selectByFilterCondition(FilterCondition filterCondition, Long userId, int page, int size);

    /**
     * 批量导入历史项目
     * @param historyProjectUploads
     * @param userId
     * @return void
     * @create 2021/5/11 16:02
     */
    void upload(List<HistoryProjectUpload> historyProjectUploads , Long userId , Long stationId);

    /**
     * 导出
     * @param ids 
     * @param filterCondition
     * @return java.util.List<com.yunhe.merchants.model.IntentionProjectUpload> 
     * @create 2021/5/13 16:34
     */
    List<MyProject> export(String ids, FilterCondition filterCondition);

    /**
     * 编辑历史项目
     * @param id 
     * @param leavingReason 
     * @param latestDestination 
     * @param userId
     * @return com.yunhe.merchants.domain.MyProject 
     * @create 2021/5/13 17:32
     */
    MyProject update(Long id, String leavingReason, String latestDestination, Long userId);
}
